home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wtek0693.zip / BITMAP.ZIP / DDLIST.H < prev    next >
C/C++ Source or Header  |  1992-10-09  |  2KB  |  70 lines

  1. /*
  2.  * DDLIST.H
  3.  *
  4.  * Menu identifiers, control identifiers, global variables, and function
  5.  * prototypes for DDLIST.
  6.  *
  7.  * Copyright (c)1992 Kraig Brockschmidt, All Right Reserved
  8.  * Internet  :  kraigb@microsoft.com
  9.  * Compuserve:  70750,2344
  10.  */
  11.  
  12.  
  13. #ifndef WIN32
  14. //Private drive types not covered in Win3.x GetDriveType but in Win32
  15. #define DRIVE_CDROM                 5
  16. #define DRIVE_RAM                   6
  17.  
  18. //We also need this export from Kernel, normally in windows.inc
  19. void FAR PASCAL DOS3Call(void);
  20. #endif
  21.  
  22.  
  23.  
  24. //Resource identifiers
  25. #define IDD_DDLIST                  10
  26. #define IDR_MENU                    1
  27.  
  28. //Resource bitmaps:  uses GetDriveType IDs for the drive type bitmaps.
  29. #define IDB_DRIVEMIN                DRIVE_REMOVABLE
  30. #define IDB_DRIVEFLOPPY             DRIVE_REMOVABLE
  31. #define IDB_DRIVEHARD               DRIVE_FIXED
  32. #define IDB_DRIVENETWORK            DRIVE_REMOTE
  33. #define IDB_DRIVECDROM              DRIVE_CDROM
  34. #define IDB_DRIVERAM                DRIVE_RAM
  35. #define IDB_DRIVEMAX                DRIVE_RAM
  36.  
  37. #define IDB_FOLDERMIN               10
  38. #define IDB_FOLDERCLOSED            10
  39. #define IDB_FOLDEROPEN              11
  40. #define IDB_FOLDEROPENSELECT        12
  41. #define IDB_FOLDERMAX               12
  42.  
  43.  
  44. //Control identifiers
  45. #define ID_NULL                     -1
  46. #define ID_DRIVELIST                100
  47. #define ID_DIRECTORYLIST            101
  48. #define ID_TEMPLIST                 102
  49.  
  50. //Menu commands
  51. #define IDM_DIALOG                  200
  52.  
  53.  
  54.  
  55.  
  56. //Function prototypes
  57.  
  58. //DDLIST.C
  59. LONG      FAR PASCAL DDListWndProc(HWND, UINT, UINT, LONG);
  60. BOOL      FAR PASCAL DDListDialogProc(HWND, UINT, UINT, LONG);
  61.  
  62. void                 DriveListInitialize(HWND, HWND);
  63. UINT                 DriveType(UINT);
  64. void                 DirectoryListInitialize(HWND, HWND, LPSTR);
  65. void                 DriveDirDrawItem(LPDRAWITEMSTRUCT, BOOL);
  66. void                 TransparentBlt(HDC, UINT, UINT, HBITMAP, COLORREF);
  67.  
  68. //Special ROP code for TransparentBlt.
  69. #define ROP_DSPDxax  0x00E20746
  70.